<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Insert title here</title>
<script type="text/javascript">
/* 点击刷新验证码 */
function changeCode(){
         
    var src = "http://localhost:8080/myapp/yanzheng"
    $('.verifyCode').attr("src",src);               
         
}
</script>
</head>
<body>
<form class="ui form error" method="post"
                		action="${pageContext.request.contextPath }/user">
    <div class="field">
        用户名
        <input autofocus="" id="id_username" maxlength="254" name="username" type="text" required />
    </div>
                        
    <div class="field">
        密码
        <input id="id_password" name="password" type="password" required />
    </div>
                            
    <div class="field">
        <!-- 验证码图片  -->
        <img class="verifyCode" onclick="changeCode()" src="yanzheng">
        <input class="verifyInput"  name="verifyInput" placeholder="请输入验证码">  
    </div>
                        
    <button class="ui inverted red circular right floated button" type="submit">
        登录
    </button>
</form>
</body>
</html>
